﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MES_SystemUI.Domain
{
    /// <summary>
    /// 物料规格表
    /// </summary>
    public class MaterialSpec
    {
        /// <summary>
        /// 物料规格主键，自增
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int MaterialSpecId { get; set; }
        /// <summary>
        /// 物料规格名称
        /// </summary>
        [Required]
        [Column(TypeName = "varchar")]
        [StringLength(20)]
        public string MaterialSpecName { get; set; }
        /// <summary>
        /// 数据状态  0 正常 1 删除
        /// </summary>
        [Required]
        public int Status { get; set; } = 0;
        /// <summary>
        /// 创建人，外键
        /// </summary>
        [Required]
        public int CteateUserId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Required]
        public DateTime CreateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 最后修改人，外键
        /// </summary>
        public int? LastUpdateUserId { get; set; }
        /// <summary>
        /// 最后修改时间
        /// </summary>
        public DateTime? LastUpdateTime { get; set; }
    }
}
